import request from '@/utils/request'

// 查询惠企政策列表
export function listHqzc(query) {
  return request({
    url: '/manage/hqzc/list',
    method: 'get',
    params: query
  })
}

// 查询惠企政策详细
export function getHqzc(id) {
  return request({
    url: '/manage/hqzc/' + id,
    method: 'get'
  })
}

// 新增惠企政策
export function addHqzc(data) {
  return request({
    url: '/manage/hqzc',
    method: 'post',
    data: data
  })
}

// 修改惠企政策
export function updateHqzc(data) {
  return request({
    url: '/manage/hqzc',
    method: 'put',
    data: data
  })
}

// 删除惠企政策
export function delHqzc(id) {
  return request({
    url: '/manage/hqzc/' + id,
    method: 'delete'
  })
}
